import 'package:flutter/material.dart';
import 'package:ivc/model/bizmodel.dart';
import 'package:transparent_image/transparent_image.dart';
import '../../routers/application.dart';
import '../../model/test_data.dart';
import "../factory/running_status.dart";
import 'package:ivc/globals.dart' as globals;

class TipCard extends StatefulWidget {
  final String id;
  final bool readonly;

  TipCard({this.id, this.readonly});
  @override
  TipCardState createState() => new TipCardState();
}

class TipCardState extends State<TipCard> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(globals.opCardData["title"]),
      ),
      body: ListView(children: <Widget>[
        Container(
            padding: EdgeInsets.all(8),
            color: Colors.lightGreen,
            child: Text(
              globals.opCardData['subtitle'],
              style: TextStyle(
                  color: Colors.black,
                  fontSize: 14,
                  fontWeight: FontWeight.w700),
            )),
        Text('''尊敬的生产厂家好, 本公司需要在2019-11-10前交付产品, 请务必达成,谢谢!
产品名称: 明日之星玩具
产品型号: MRZX2019-M-03
生产数量: 1000套
生产交期: 2019-11-10
付款节奏: 20-80
付款方式: 平台(区块链)
信用评分: 1200
''', style: TextStyle(fontSize: 16, color: Colors.black54)),
        SizedBox(
          height: 500,
          child: Container(),
        )
      ]),
    );
  }
}
